﻿// (c) Norbert Huffschmid
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.

using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;

namespace ShoutBoxService
{
    [RunInstaller(true)]
    public class ShoutBoxServiceInstaller : Installer
    {
        private ServiceInstaller serviceInstaller;
        private ServiceProcessInstaller serviceProcessInstaller;

        public ShoutBoxServiceInstaller()
        {
            this.serviceInstaller = new ServiceInstaller();
            this.serviceInstaller.ServiceName = "Shoutbox Service";
            this.serviceInstaller.Description = "Push-to-Talk communication within home networks";
            this.serviceInstaller.StartType = ServiceStartMode.Automatic;

            this.serviceProcessInstaller = new ServiceProcessInstaller();
            this.serviceProcessInstaller.Account = ServiceAccount.LocalSystem;

            Installers.Add(this.serviceInstaller);
            Installers.Add(this.serviceProcessInstaller);
        }
    }
}
